//
//  MyTabelBarViewController.swift
//  SecondApp
//
//  Created by 千锋 on 16/10/13.
//  Copyright © 2016年 1000phone. All rights reserved.
//

import UIKit

class MyTabelBarViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        
        self.createViewControllers()
        
        
    }

    func createViewControllers(){
        let first = FirstViewController()
        let Nav1 = UINavigationController(rootViewController: first)
        
        let second = SecondViewController()
        let Nav2 = UINavigationController(rootViewController: second)
        
        let third = ThirdViewController()
        let Nav3 = UINavigationController(rootViewController: third)
        
        self.viewControllers = [Nav1, Nav2, Nav3]
        
    }
}
